import {defineStore} from 'pinia'

/**
 * 仓库
 */
const useTalkStore = defineStore('talkStore', {
    // 真正存取数据的地方
    state: (): { talkList: any[] } => ({
        talkList: JSON.parse(sessionStorage.getItem('talkList') as string) || [],
    })
});

export default useTalkStore;
